// 医院相关类型定义

// 科室信息
export interface Department {
  id: number
  departmentName: string
  type: string
  paretId: number
  departmentAddr: string
  registrationFee: number
  isEmergencyService: boolean
  isOnline: boolean
  remark: string
}

// 医院信息
export interface Hospital {
  id: number
  hospitalName: string
  level: string
  hospitalTypeId: number
  hospitalTypeName?: string
  contactInfo: string
  region: string
  image: string
  detailedAddress: string
  departmentSetup: Department[]
  numberOfDoctors: number
  numberOfDepartments: number
  hospitalIntroduction: string
  isRecommended: boolean
}

// 医院搜索参数
export interface HospitalSearchParams {
  hospitalName?: string
  region?: string
}

// 医院类型
export interface HospitalType {
  id: number
  hospitalType: string
}

// 新增医院表单数据
export interface AddHospitalForm {
  hospitalName: string
  level: string
  hospitalTypeId: number | null
  contactInfo: string
  region: string
  image?: string
  detailedAddress: string
  departmentIds: number[]
  numberOfDoctors: number
  numberOfDepartments: number
  hospitalIntroduction: string
  isRecommended: boolean
  createPeople: string
}

// 医院列表接口响应
export interface HospitalListResponse {
  msg: string
  code: number
  data: Hospital
  totaCount: number
  totaPage: number
  pageData: Hospital[]
}

// 新增医院接口响应
export interface AddHospitalResponse {
  id: {
    msg: string
    code: number
    data: number
  }
  message: string
}

// 删除医院接口响应
export interface DeleteHospitalResponse {
  message: string
  successCount: number
  failCount: number
  failedIds: number[]
}

// 修改医院表单数据
export interface UpdateHospitalForm {
  id: number
  hospitalName: string
  level: string
  hospitalTypeId: number | null
  contactInfo: string
  region: string
  image?: string
  detailedAddress: string
  departmentIds: number[]
  numberOfDoctors: number
  numberOfDepartments: number
  hospitalIntroduction: string
  isRecommended: boolean
}

// 修改医院接口响应
export interface UpdateHospitalResponse {
  message: string
}